x11: Simplify drag cancel animation setup
authorMatthias Clasen <mclasen@redhat.com>
Fri, 8 Jan 2016 16:30:44 +0000 (11:30 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 8 Jan 2016 16:33:24 +0000 (11:33 -0500)
commit709cc0860351a2f77fcdf76396aab61a1e2899a0
tree7cc7a93cff45c634ad1b07942994e5b8a4de1956
parentea0084cd995283dee00a327c92d9896994e738e1
x11: Simplify drag cancel animation setup

Instead of creating an intermediate pixbuf, just render
the window surface onto the new surface. Doing things this
way lets us avoid the cairo_surface_mark_dirty() call in
gdk_pixbuf_get_from_window(), which is not generally safe
to call on 'random' surfaces - it asserts that the surface
has no mime data attached, and the X11 backend uses mime
data for damage tracking purposes...
gdk/x11/gdkdnd-x11.c